/* -----------------------------------------------------
 iCompose
 InstrumentPlayer.h
 
 Created by Team: THE BEARD on 19/10/09.
 Members who contributed to this file:
 1. Ethan Holmes
 2. Bobby Luk
 3. Stephen Laughton
 
 List of changes to previous member:
 Version 1:
 Oct. 26, 2009 (Bobby)
 - Added the play function definition, AVAudioPlayer variable, and #import <AVFoundation/AVFoundation.h>
 Oct 29, 2009 (Ethan)
 - Changed the play function to use an array of notes
 Nov. 1, 2009 (Bobby)
 - Added #import <AudioToolbox/AudioToolbox.h>, #import "Note.h", and #import "Tempo.h"
 Version 2:
 17 Nov, 2009 (Stephen)
 - Changed implementation to include an array of audioplayer instead of one.
 
 Simon Fraser University, 2009.
 ----------------------------------------------------- */

#import <Foundation/Foundation.h>
#import <AVFoundation/AVFoundation.h>
#import <AudioToolbox/AudioToolbox.h>
#import "NoteNode.h"
#import "Tempo.h"


@interface InstrumentPlayer : NSObject <AVAudioPlayerDelegate>{
	NSMutableArray* audioPlayers;
}

@property (nonatomic, retain) NSMutableArray* audioPlayers;

- (void)playNotes:(NSMutableArray*)noteList andTempo:(Tempo*)tempo;
- (void)stopNotes;

@end
